﻿using WeiBeeCommon.Core;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using WeiBeeCommon.DataTypes;

namespace TestQunFaExpert
{
    
    
    /// <summary>
    ///This is a test class for WeiBeeSinaTest and is intended
    ///to contain all WeiBeeSinaTest Unit Tests
    ///</summary>
    [TestClass()]
    public class WeiBeeSinaTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Retweet
        ///</summary>
        [TestMethod()]
        public void RetweetTest()
        {
            WeiBeeSina target = new WeiBeeSina(); // TODO: Initialize to an appropriate value
            string id = string.Empty; // TODO: Initialize to an appropriate value
            string status = string.Empty; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.Retweet(id, status);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ResultToRateLimit
        ///</summary>
        [TestMethod()]
        public void ResultToRateLimitTest()
        {
            WeiBeeSina target = new WeiBeeSina(); // TODO: Initialize to an appropriate value
            target.OAuth.Token = "2c40e5617027f5f91830f1e938044b1c";
            target.OAuth.TokenSecret = "314c8b8e94804af654ef3d04e793c6d5";
            target.OAuth.ConsumerKey = "1758087936";
            target.OAuth.ConsumerSecret = "bed16662269e81094dff3bfbe70af158";
            string result = target.RateLimitStatus();
            
            RateLimit actual = target.ResultToRateLimit(result);
        }


    }
}
